package com.fireXXX.job.analysis.datamgr.service;

import com.fireXXX.job.analysis.data.api.job.Company;
import com.fireXXX.job.analysis.data.api.job.Job;
import com.fireXXX.job.analysis.datamgr.dao.CompanyRepository;
import com.fireXXX.job.analysis.datamgr.dao.JobRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class CompanyService {

    @Resource
    private CompanyRepository companyRepository;

    public Company get(Long id) {
        return companyRepository.findById(id).get();
    }

    public void save(Company company) {
        companyRepository.save(company);
    }

}
